<?php


namespace app\index\model;


class Appraise extends Base
{
    protected $pk='id';
    public function images()
    {
        return $this->hasMany('AppraiseImg','foreign_id','id');
    }
    public function user()
    {
        return $this->belongsTo('app\user\model\User','u_id','u_id');
    }
}